package com.ctcemti.mdm.project.sys.dao;

import com.ctcemti.mdm.project.sys.entity.ResMaterialLibrary;
import com.ctcemti.mdm.project.sys.entity.ResMaterialLibrary;
import org.apache.ibatis.annotations.Mapper;
import tk.mybatis.mapper.common.IdsMapper;

import java.util.List;

/**
 * @ClassName ResMaterialLibraryMapper
 * @Description 物料类库类
 * @Author bxf
 * @Date 11:17 2019/10/28
 * @Version V1.0
 **/
@Mapper
public interface ResMaterialLibraryMapper extends tk.mybatis.mapper.common.Mapper<ResMaterialLibrary>,IdsMapper<ResMaterialLibrary> {

    int updateByIdSelective(ResMaterialLibrary resMaterialLibrary);

    /* *
     * @Author bxf
     * @Description 根据分类id删除具体材料项
     * @Date 14:40 2019/10/28
     * @param ids
     * @return int
     */
    public int deleteBySysMaterialClassificationId(String ids[]);
    /* *
     * @Author bxf
     * @Description 批量添加物料类库
     * @Date 8:48 2019/10/29
     * @param list
     * @return int
     */
    int insertBatch(List<ResMaterialLibrary> list);
}